Optimal. Leaf size=214 \[ \frac {2 \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{a^{7/2} d}-\frac {177 \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{64 \sqrt {2} a^{7/2} d}-\frac {49 \sin (c+d x) \sqrt {\cos (c+d x)}}{64 a^2 d (a \cos (c+d x)+a)^{3/2}}-\frac {\sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{6 d (a \cos (c+d x)+a)^{7/2}}-\frac {17 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{48 a d (a \cos (c+d x)+a)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.60, antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {2765, 2977, 2982, 2782, 205, 2774, 216} \[ \frac {2 \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{a^{7/2} d}-\frac {49 \sin (c+d x) \sqrt {\cos (c+d x)}}{64 a^2 d (a \cos (c+d x)+a)^{3/2}}-\frac {177 \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{64 \sqrt {2} a^{7/2} d}-\frac {\sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{6 d (a \cos (c+d x)+a)^{7/2}}-\frac {17 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{48 a d (a \cos (c+d x)+a)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 216
Rule 2765
Rule 2774
Rule 2782
Rule 2977
Rule 2982
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {7}{2}}(c+d x)}{(a+a \cos (c+d x))^{7/2}} \, dx &=-\frac {\cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{6 d (a+a \cos (c+d x))^{7/2}}-\frac {\int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (\frac {5 a}{2}-6 a \cos (c+d x)\right )}{(a+a \cos (c+d x))^{5/2}} \, dx}{6 a^2}\\ &=-\frac {\cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{6 d (a+a \cos (c+d x))^{7/2}}-\frac {17 \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{48 a d (a+a \cos (c+d x))^{5/2}}-\frac {\int \frac {\sqrt {\cos (c+d x)} \left (\frac {51 a^2}{4}-24 a^2 \cos (c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx}{24 a^4}\\ &=-\frac {\cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{6 d (a+a \cos (c+d x))^{7/2}}-\frac {17 \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{48 a d (a+a \cos (c+d x))^{5/2}}-\frac {49 \sqrt {\cos (c+d x)} \sin (c+d x)}{64 a^2 d (a+a \cos (c+d x))^{3/2}}-\frac {\int \frac {\frac {147 a^3}{8}-48 a^3 \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{48 a^6}\\ &=-\frac {\cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{6 d (a+a \cos (c+d x))^{7/2}}-\frac {17 \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{48 a d (a+a \cos (c+d x))^{5/2}}-\frac {49 \sqrt {\cos (c+d x)} \sin (c+d x)}{64 a^2 d (a+a \cos (c+d x))^{3/2}}+\frac {\int \frac {\sqrt {a+a \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx}{a^4}-\frac {177 \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{128 a^3}\\ &=-\frac {\cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{6 d (a+a \cos (c+d x))^{7/2}}-\frac {17 \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{48 a d (a+a \cos (c+d x))^{5/2}}-\frac {49 \sqrt {\cos (c+d x)} \sin (c+d x)}{64 a^2 d (a+a \cos (c+d x))^{3/2}}-\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{a^4 d}+\frac {177 \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{64 a^2 d}\\ &=\frac {2 \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{a^{7/2} d}-\frac {177 \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{64 \sqrt {2} a^{7/2} d}-\frac {\cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{6 d (a+a \cos (c+d x))^{7/2}}-\frac {17 \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{48 a d (a+a \cos (c+d x))^{5/2}}-\frac {49 \sqrt {\cos (c+d x)} \sin (c+d x)}{64 a^2 d (a+a \cos (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.74, size = 412, normalized size = 1.93 \[ \frac {\cos ^7\left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {\cos (c+d x)} \left (-\frac {\sec \left (\frac {c}{2}\right ) \sin \left (\frac {d x}{2}\right ) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{3 d}-\frac {\tan \left (\frac {c}{2}\right ) \sec ^5\left (\frac {c}{2}+\frac {d x}{2}\right )}{3 d}+\frac {11 \sec \left (\frac {c}{2}\right ) \sin \left (\frac {d x}{2}\right ) \sec ^4\left (\frac {c}{2}+\frac {d x}{2}\right )}{4 d}+\frac {11 \tan \left (\frac {c}{2}\right ) \sec ^3\left (\frac {c}{2}+\frac {d x}{2}\right )}{4 d}-\frac {247 \sec \left (\frac {c}{2}\right ) \sin \left (\frac {d x}{2}\right ) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{24 d}-\frac {247 \tan \left (\frac {c}{2}\right ) \sec \left (\frac {c}{2}+\frac {d x}{2}\right )}{24 d}\right )}{(a (\cos (c+d x)+1))^{7/2}}-\frac {i e^{\frac {1}{2} i (c+d x)} \sqrt {e^{-i (c+d x)} \left (1+e^{2 i (c+d x)}\right )} \cos ^7\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (64 \sinh ^{-1}\left (e^{i (c+d x)}\right )+\frac {177 \tanh ^{-1}\left (\frac {1-e^{i (c+d x)}}{\sqrt {2} \sqrt {1+e^{2 i (c+d x)}}}\right )}{\sqrt {2}}-64 \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )\right )}{4 \sqrt {2} d \sqrt {1+e^{2 i (c+d x)}} (a (\cos (c+d x)+1))^{7/2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 3.50, size = 270, normalized size = 1.26 \[ \frac {531 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{4} + 4 \, \cos \left (d x + c\right )^{3} + 6 \, \cos \left (d x + c\right )^{2} + 4 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, \sqrt {a \cos \left (d x + c\right ) + a} {\left (247 \, \cos \left (d x + c\right )^{2} + 362 \, \cos \left (d x + c\right ) + 147\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 768 \, {\left (\cos \left (d x + c\right )^{4} + 4 \, \cos \left (d x + c\right )^{3} + 6 \, \cos \left (d x + c\right )^{2} + 4 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{384 \, {\left (a^{4} d \cos \left (d x + c\right )^{4} + 4 \, a^{4} d \cos \left (d x + c\right )^{3} + 6 \, a^{4} d \cos \left (d x + c\right )^{2} + 4 \, a^{4} d \cos \left (d x + c\right ) + a^{4} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (d x + c\right )^{\frac {7}{2}}}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.18, size = 432, normalized size = 2.02 \[ \frac {\left (\cos ^{\frac {7}{2}}\left (d x +c \right )\right ) \left (-1+\cos \left (d x +c \right )\right )^{6} \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (384 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right ) \sqrt {2}\, \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )+247 \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+768 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right )+115 \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+531 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )+384 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right ) \sqrt {2}\, \sin \left (d x +c \right )-215 \cos \left (d x +c \right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+1062 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right )-147 \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+531 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )\right ) \sqrt {2}}{384 d \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {7}{2}} \sin \left (d x +c \right )^{13} a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (d x + c\right )^{\frac {7}{2}}}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\cos \left (c+d\,x\right )}^{7/2}}{{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{7/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________